import java.util.Arrays;

/**
 * @Author liangzai
 * @Description:
 */


//arr = Arrays.copyOf(arr,arr.length);
//测试数组拷贝，数组的地址是否会改变
public class Test1 {
    public static void main(String[] args) {
        int[] arr = {1,3,4};
        System.out.println(arr);

        test(arr);
    }

    public static void test(int[] arr){
        arr = Arrays.copyOf(arr,arr.length);
        System.out.println(arr);
    }
}
